<include file='Admin/Tpl/Public/nav.html' />
  <div id="main-content">
    <div class="content-box">
      <div class="content-box-header">
        <ul class="content-box-tabs">
          <li><a href="#tab1" onclick="javascript:window.location='__URL__/Admin'"> 列 表 </a></li>
         <li><a href="#tab2" class="default-tab"> 修 改 </a></li>
        </ul>
        <div class="clear"></div>
      </div>
      <div class="content-box-content">
        <div class="tab-content default-tab" id="tab2">
          <form>
            <fieldset>
			 <table>
             <input type="hidden" id="id" value="{$rs.id}"/>
             	<tr>
                	<td width="20%">用户名</td>
                    <td><input class="text-input small-input" type="text" id="username" value="{$rs.username}" /></td>
                </tr>
                <tr>
                	<td width="20%">密码</td>
                    <td><input class="text-input medium-input datepicker" type="text" id="pwd" value="{$rs.pwd}" /></td>
                </tr>
             </table>
            <p>
              <input class="button" type="submit" id="submit" value="Submit" />
            </p>
            </fieldset>
            <div class="clear"></div>
			</fieldset>
          </form>
        </div>
      </div>
    </div>
    <div class="clear"></div>
</div>
</body>
</html>
<script type="text/javascript">
$("#submit").bind("click",function(){
	$.ajax({
		type:'post',
		url:'__URL__/Admin/uptAct',
		data:'id={$rs.id}&username='+$('#username').val()+'&pwd='+$('#pwd').val(),
		dataType:'json',
		success:function(data){
			alert(data.msg);
			window.location='__APP__/Admin/Admin';
		}	
	});
	return false;
});
</script>
